package com.wyq.service.impl;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.wyq.bean.AudienceQ;
import com.wyq.bean.Audience_Q;
import com.wyq.bean.Audience_Qtitle;
import com.wyq.dao.AudienceQDao;
import com.wyq.service.AudienceQService;

public class AudienceQServiceImpl implements AudienceQService {

	private AudienceQDao audienceQDao;
	

	public void setAudienceQDao(AudienceQDao audienceQDao) {
		this.audienceQDao = audienceQDao;
	}
	
	public Set<Audience_Q> findAllAudience_Q(Audience_Qtitle aq)  throws Exception{
		return audienceQDao.findAllAudience_Q(aq);
	}

	public List<Audience_Qtitle> findAllAudience_Qtitle(String show_id) throws Exception {
		return audienceQDao.findAllAudience_Qtitle(show_id);
	}

	public void removeAudienceQContent(Audience_Q aqc) throws Exception {
		audienceQDao.removeAudienceQContent(aqc);
	}

	public void removeAudienceQtitle(Audience_Qtitle aq) throws Exception {
		audienceQDao.removeAudienceQtitle(aq);
	}

	public int saveAudienceQContent(Map qmap,final int flag) throws Exception {
		return audienceQDao.saveAudienceQContent(qmap,flag);
	}

	public int saveAudienceQtitle(Map qTitlemap,final int flag) throws Exception {
		return audienceQDao.saveAudienceQtitle(qTitlemap,flag);
	}

	public AudienceQDao getAudienceQ() {
		return audienceQDao;
	}

	//根据ID获取调查问卷内容名称
	public String getQText(String qid) throws Exception  {
		// TODO Auto-generated method stub
		return audienceQDao.getQText(qid);
	}
	
	//根据ID获取调查问卷标题名称
	public String getQTitleName(String qtitleID) throws Exception {
		// TODO Auto-generated method stub
		return audienceQDao.getQTitleName(qtitleID);
	}

	public List findAllQTitle(String type) throws Exception {
		// TODO Auto-generated method stub
		return audienceQDao.findAllQTitle(type);
	}
	
	//根据问卷调查标题获取内容
	public List findAllQContentByQTitleId(String qTitleid) throws Exception {
		// TODO Auto-generated method stub
		return audienceQDao.findAllQContentByQTitleId(qTitleid);
	}
	


}
